﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<EnterpriseManagement.Models.RestPasswordModel>" %>

<div id="resetpassword">
<br />
 <h1>ResetPassword</h1>
 <br /><br />
    <% using (Ajax.BeginForm("ResetPassword", new AjaxOptions { UpdateTargetId = "resetpassword" }))
       { %>
        <%: Html.ValidationSummary(true)%>
       
            <table id="tablenoframe" style =" margin:0 20%"> 
            <tr>
                <td class="label"><%: Html.LabelFor(model => model.EmployeeId) %></td>
                <td class="editor-field">
                <%: Html.TextBoxFor(model => model.EmployeeId) %>
                <%: Html.ValidationMessageFor(model => model.EmployeeId) %>
                </td>
            </tr>

            <tr>
                <td class="label"><%: Html.LabelFor(model => model.NewPassword)%></td>
                <td class="editor-field">
                <%: Html.PasswordFor(model => model.NewPassword) %>
                <%: Html.ValidationMessageFor(model => model.NewPassword) %>
                </td>
            </tr>

            <tr>
                <td class="label"><%: Html.LabelFor(model => model.ConfirmPassword) %></td>
                <td class="editor-field">
                <%: Html.PasswordFor(model => model.ConfirmPassword) %>
                <%: Html.ValidationMessageFor(model => model.ConfirmPassword) %>
                </td>
            </tr>
              <tr>
                <td></td><td><input type="submit" value="重置密码" style ="margin-left:80px;position:absolute" /></td>
              </tr>
            </table> 
            
     

    <% } %>

    
    </div>